package com.zhsq.zlc.dao.role;

import com.zhsq.zlc.entity.RoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface RoleMapper {

	List<RoleEntity> list(RoleEntity entity) throws Exception;

	List<RoleEntity> getRoleById(RoleEntity entity) throws Exception;

	int count(RoleEntity entity) throws Exception;

	void add(RoleEntity entity) throws Exception;
	
	void edit(RoleEntity entity) throws Exception;

	void delete(int id) throws Exception;
}
